package mm.chenchen.common.utils;

/**
 * 数据返回对象
 *
 * @author ccw 564697100@qq.com
 * @date 2021/4/20
 */
public class Result<T> {
    private static final long serialVersionUID = 1L;
    private T data;
    private int code;
    private String msg;

    private Result(){

    }

    public static Result getInstance() {
        return new Result();
    }
    public static Result getInstance(int code,String msg,Object data) {
        Result result=new Result<Object>();

        return result;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
